
    import request from '@/utils/request'
    // 查询学生信息表列表
    export const listStudent = (query) => {
    return request({
        url: '/system/student/list',
        method: 'get',
        params: query
    })
    }
    // 查询学生信息表详细
    export const getStudent = (studentId) => {
    return request({
        url: '/system/student/' + studentId,
        method: 'get'
    })
    }
    
    // 新增学生信息表
    export const addStudent = (data) => {
    return request({
        url: '/system/student',
        method: 'post',
        data: data
    })
    }

    // 修改学生信息表
    export const updateStudent = (data) => {    
    return request({
        url: '/system/student',
        method: 'put',
        data: data
    })
    }
    export const updateStudentInfo = (data) => {    
    return request({
        url: '/system/student/info',
        method: 'put',
        data: data
    })
    }
    // 删除学生信息表
    export const delStudent = (studentId) => {  
    return request({
        url: '/system/student/' + studentId,
        method: 'delete'
    })
    }
    
    // 导出学生信息表
    export const exportStudent = (data) => {
    return request({
        url: '/system/student/export',
        method: 'post',
        data: data
    })
    }
    